package com.rory.controller;

import com.rory.service.serviceInterface.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * class: TestController.
 * Created by Rory on 2016/11/22.
 * use:  .
 * other:  .
 */
@Controller
public class TestController extends BaseController {

    @Autowired
    private IndexService indexService;

//    @RequestMapping("test")
//    public String testController(Model model) {
//        model.addAttribute("a", indexService.getInfo("哈喽"));
//        return "test";
//    }
//
//    @RequestMapping("e404")
//    public String testError(Model model) {
//        model.addAttribute("a", indexService.getInfo("哈喽"));
//        return "back/pages-error-404";
//    }
//
//    @RequestMapping("index")
//    public String testIndex(Model model) {
//        return "back/index";
//    }
}
